/*----------------------------------------------------------------
 *  Author:        Funing Teng
 *  Written:       02/10/2014
 *  Last updated:  02/10/2014
 *
 *  The member who has earned enough credits will enjoy a deeper 
 *  discount.
 *
 *----------------------------------------------------------------*/

package JavaSource;

import java.io.Serializable;

/**
 *
 * @author Funing Teng
 * @version 1.0
 */
public class Premium implements Serializable {
    
    // Attribute
    private double discount;
    private double rate;

    // Constructor
    public Premium(double discount, double rate) {
        this.discount = discount;
        this.rate = rate;
    }

    // Method
    public double getDiscount() {
        return discount;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }

    public double getRate() {
        return rate;
    }

    public void setRate(double rate) {
        this.rate = rate;
    }
}
